package com.fanbuchi.app.ins.api;

import com.fanbuchi.app.ins.vo.Profile;

import retrofit.http.Body;
import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.PUT;
import retrofit.http.Path;
import rx.Observable;

/**
 * Created by win7 on 2016/6/1.
 */
public interface AccountAPI {
    @GET("/v1/account/{userId}/sum")
    Observable<Profile> getAccount(@Path("userId") String userId);

    @POST("/v1/account")
    Observable<Profile> addProfile(@Body Profile profile);

    @PUT("/v1/account")
    Observable<Profile> updateProfile(@Body Profile profile);

}
